<?php
/**
 * User: @lixu
 * Date: 2019-02-21
 * Time: 18:36
 */

ini_set('display_errors', 1);
error_reporting(-1);
require_once '/data/wwwroot/g_vendor/autoload.php';

use Biz\model\trade\ShopCourier as mShopCourier;

$data = [
    'courier_id' => 30,
    'courier_name' => '泽远物流',
    'courier_code' => 130,
    'courierbird_code' => '',
    'trackingmore_code' => '',
    'courier_website' => '',
    'addtime' => date('Y-m-d H:i:s'),
    'edittime' => date('Y-m-d H:i:s'),
];

$result = mShopCourier::add($data);
if($result) {
    echo 'ok';
} else {
    echo 'no';
}